package com.example.userserver.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
@Data
@ApiModel(value = "RegisterParams", description = "注册入参")
public class RegisterParams {

    @ApiModelProperty(value = "账号", example = "liuyuahao", required = true)
    @NotBlank(message = "账号不能为空")
    private String account;
    @ApiModelProperty(value = "昵称", example = "刘宇豪", required = true)
    @NotBlank(message = "昵称不能为空")
    private String userName;
    @ApiModelProperty(value = "密码", example = "123456", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty(value = "账号角色", example = "1", required = true)
    private int role;
    @ApiModelProperty(value = "账号状态", example = "1", required = true)
    private int status;
}
